<?php
    echo $this->form.'<br/><br/><br/>';
    if($this->curso){
        echo "<h2>".$this->curso."</h2>";
        if($this->lista){
            foreach($this->lista as $perfil):
                if($perfil['role']!='Participante'){
                    echo "<h3>".$perfil['role']."</h3>";
                    echo "<ul>";
                    foreach($perfil['lista'] as $lista):
                        echo "<li>".$lista->nome."</li>";
                    endforeach;
                    echo "</ul>";
                }
            endforeach;
            foreach($this->lista as $perfil):
                if($perfil['role']=='Participante'){
                    echo "<h3>".$perfil['role']."</h3>";
                    echo "<ul>";
                    foreach($perfil['lista'] as $lista):
                        echo "<li>".$lista->nome."</li>";
                    endforeach;
                    echo "</ul>";
                }
            endforeach;
        }
    }
?>